// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

// swift-tools-version:5.7
import PackageDescription

let package = Package(
    name: "RxDataParser",
    platforms: [.iOS(.v13)],
    products: [
        .library(
            name: "RxDataParser",
            targets: ["RxDataParser"])
    ],
    dependencies: [
        // 使用 RxSwift 6.x 版本，支持新的 API
        .package(url: "https://github.com/ReactiveX/RxSwift.git", from: "6.6.0"),
    ],
    targets: [
        .target(
            name: "RxDataParser",
            dependencies: [
                .product(name: "RxSwift", package: "RxSwift"),
                .product(name: "RxCocoa", package: "RxSwift")
            ],
            path: "Sources",
            exclude: ["Info.plist"]
        ),
        .testTarget(
            name: "RxDataParserTests",
            dependencies: ["RxDataParser"],
            path: "Tests"
        )
    ]
)
